﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPFUtilities.Collections
{
    /// <summary>
    /// Marks an indexible object that will never throw a OutOfBounds exception. Instead, this contract 
    /// ensures that a request that what would normally throw, will instead return an empty/dummy object.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISafeElementAt<T>
    {
        T this[int i] { get; }
    }
}